<?php
use app\models\User;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;

/* @var $model \app\models\UserProfile */
/* @var $user \app\models\User */
/* @var $this \yii\web\View */
?>


<div class="mui-content">
    <div class="mui-content-padded">
        <?php $form = ActiveForm::begin(['options' => ['class' => 'mui-input-group login-form']]); ?>

        <div class="mui-input-row input-icon">
            <div class="icon icon-user"></div>
            <?= $form->field($user, 'uname')->textInput(['placeholder' => '请输入姓名'])->label(FALSE); ?>
        </div>

        <div class="mui-input-row input-icon">
            <div class="icon icon-user"></div>
            <?php $userTypes = User::$userTypeLabels; unset($userTypes[0]); ?>
            <?= $form->field($user, 'type')->dropDownList($userTypes,['prompt' => '请选择用户类型'])->label(FALSE); ?>
        </div>

        <div class="mui-input-row input-icon">
            <div class="icon icon-user"></div>
            <?= $form->field($user, 'phone')->textInput(['placeholder' => '请输入手机号'])->label(FALSE); ?>
        </div>

        <div class="mui-input-row input-icon">
            <div class="icon icon-yzm"></div>
            <?= $form->field($user, 'verifyCode')->textInput(['placeholder' => '请输入验证码'])->label(FALSE); ?>

            <button type="button" id="<?= Url::to(['verify', 'phone' => '']); ?>" class="mui-btn mui-btn-blue send-code">发送验证码</button>
        </div>

        <button type="submit" class="mui-btn btn-ui mui-btn-block border-r5">提交</button>

        <?php ActiveForm::end(); ?>
    </div>
</div>